package com.da.springtest.loop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author chenlida
 * @date 2020/7/21 22:50
 * @description
 */
public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MyConfig.class);

        System.out.println(context.getBean("AService"));
        System.out.println(context.getBean("BService"));
    }
}
